package com.weixin.paleituo.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Author yichao
 * Time  2018/2/11 14:13
 * Dest  买房步骤
 */

public class BuyHouseStepBean implements Parcelable {
    @Override
    public String toString() {
        return "BuyHouseStepBean{" +
                "isReserve='" + isReserve + '\'' +
                ", purchase=" + purchase +
                ", isSign='" + isSign + '\'' +
                ", sign=" + sign +
                ", istake='" + istake + '\'' +
                ", take=" + take +
                ", ischeck='" + ischeck + '\'' +
                ", check=" + check +
                '}';
    }

    /**
     * isReserve : 1
     * purchase : {"advanceid":961856133935398912,"advancetime":"2018-02-09","advancemoney":"50000","payment":"1"}
     * isSign : 1
     * sign : {"signTime":"2018-03-08","paidMoney":"5000000","totalMoney":"6000000","payment":"1"}
     * istake : 1
     * take : {"takeTime":"2017-12-01"}
     * ischeck : 1
     * check : {"checkTime":"2018-01-08"}
     */

    private String isReserve;
    private PurchaseBean purchase;
    private String isSign;
    private SignBean sign;
    private String istake;
    private TakeBean take;
    private String ischeck;
    private CheckBean check;

    public String getIsReserve() {
        return isReserve;
    }

    public void setIsReserve(String isReserve) {
        this.isReserve = isReserve;
    }

    public PurchaseBean getPurchase() {
        return purchase;
    }

    public void setPurchase(PurchaseBean purchase) {
        this.purchase = purchase;
    }

    public String getIsSign() {
        return isSign;
    }

    public void setIsSign(String isSign) {
        this.isSign = isSign;
    }

    public SignBean getSign() {
        return sign;
    }

    public void setSign(SignBean sign) {
        this.sign = sign;
    }

    public String getIstake() {
        return istake;
    }

    public void setIstake(String istake) {
        this.istake = istake;
    }

    public TakeBean getTake() {
        return take;
    }

    public void setTake(TakeBean take) {
        this.take = take;
    }

    public String getIscheck() {
        return ischeck;
    }

    public void setIscheck(String ischeck) {
        this.ischeck = ischeck;
    }

    public CheckBean getCheck() {
        return check;
    }

    public void setCheck(CheckBean check) {
        this.check = check;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.isReserve);
        dest.writeParcelable(this.purchase, flags);
        dest.writeString(this.isSign);
        dest.writeParcelable(this.sign, flags);
        dest.writeString(this.istake);
        dest.writeParcelable(this.take, flags);
        dest.writeString(this.ischeck);
        dest.writeParcelable(this.check, flags);
    }

    public BuyHouseStepBean() {
    }

    protected BuyHouseStepBean(Parcel in) {
        this.isReserve = in.readString();
        this.purchase = in.readParcelable(PurchaseBean.class.getClassLoader());
        this.isSign = in.readString();
        this.sign = in.readParcelable(SignBean.class.getClassLoader());
        this.istake = in.readString();
        this.take = in.readParcelable(TakeBean.class.getClassLoader());
        this.ischeck = in.readString();
        this.check = in.readParcelable(CheckBean.class.getClassLoader());
    }

    public static final Creator<BuyHouseStepBean> CREATOR = new Creator<BuyHouseStepBean>() {
        @Override
        public BuyHouseStepBean createFromParcel(Parcel source) {
            return new BuyHouseStepBean(source);
        }

        @Override
        public BuyHouseStepBean[] newArray(int size) {
            return new BuyHouseStepBean[size];
        }
    };
}
